home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pgp20src.zip / CCC.X28 (.txt) < prev    next >
Microsoft Windows Help File Content  |  1992-08-11  |  400b  |  17 lines

  1. # script to compile ANSI source with a K&R compiler and unproto.
  2. while :
  3.     case $1 in
  4.         -c)    ;;
  5.         -o)    shift ;;
  6.         *.c)    break ;;
  7.         *)    arg="$arg $1" ;;
  8.     esac
  9.     shift
  10. set -e
  11. shift
  12. b=`basename $f .c`
  13. cc -E -C -I. $arg $f | unproto/unproto | \
  14.     sed 's/^#[     ]*\([0-9][0-9]*\)/#line \1 "'"\/tmp\/${b}.c"'"/' >/tmp/${b}.c
  15. cc -c $arg /tmp/${b}.c $*
  16. rm /tmp/${b}.c
  17.